//
//  HUserRelevantUtilities.m
//  逆向工程
//
//  Created by 9188 on 2017/5/23.
//  Copyright © 2017年 朱同海. All rights reserved.
//

#import "HUserRelevantUtilities.h"





////// /// /// 自定义模块/// /// /// /// /// /// /// /// /// ///

/// 保存服务器内容
static NSString *const HSaveServiceTextKey = @"HSaveServiceTextKey";
void HSaveServiceText(NSArray *msg) {
    [[NSUserDefaults standardUserDefaults] setObject:msg forKey:HSaveServiceTextKey];
    [[NSUserDefaults standardUserDefaults] synchronize];
}
NSArray  *HServiceText() {
    return [[NSUserDefaults standardUserDefaults] objectForKey:HSaveServiceTextKey];
}
void HClearServiceText() {
    [[NSUserDefaults standardUserDefaults] removeObjectForKey:HSaveServiceTextKey];
    [[NSUserDefaults standardUserDefaults] synchronize];
}


/// 保存自定义编号数组
static NSString *const HSaveCustomNumberArrayKey = @"HSaveCustomNumberArrayKey";
void HSaveCustomNumberArray(NSMutableArray *serviceTextArray) {
    [[NSUserDefaults standardUserDefaults] setObject:serviceTextArray forKey:HSaveCustomNumberArrayKey];
    [[NSUserDefaults standardUserDefaults] synchronize];
}
NSMutableArray  *HCustomNumberArray() {
    return  [[NSUserDefaults standardUserDefaults] objectForKey:HSaveCustomNumberArrayKey];
}
void HClearCustomNumberArray() {
    [[NSUserDefaults standardUserDefaults] removeObjectForKey:HSaveCustomNumberArrayKey];
    [[NSUserDefaults standardUserDefaults] synchronize];
}

/// 轰炸次数
static NSString *const HSaveBombCountKey = @"HSaveBombCount";
void HSaveBombCount(NSString *count) {
    [[NSUserDefaults standardUserDefaults] setObject:count forKey:HSaveBombCountKey];
    [[NSUserDefaults standardUserDefaults] synchronize];
}

NSString  *HBombCount() {
    return  [[NSUserDefaults standardUserDefaults] objectForKey:HSaveBombCountKey];

}

/// 时间间隔
static NSString *const HSaveTimeIntervalKey = @"HSaveTimeInterval";
void HSaveTimeInterval(NSString *count) {
    [[NSUserDefaults standardUserDefaults] setObject:count forKey:HSaveTimeIntervalKey];
    [[NSUserDefaults standardUserDefaults] synchronize];
}
NSString  *HTimeInterval() {
    return  [[NSUserDefaults standardUserDefaults] objectForKey:HSaveTimeIntervalKey];
}

static NSString *const HSaveRequestDictKey = @"HSaveRequestDict";
void HSaveRequestDict(NSMutableDictionary *count) {
    [[NSUserDefaults standardUserDefaults] setObject:count forKey:HSaveRequestDictKey];
    [[NSUserDefaults standardUserDefaults] synchronize];
}
NSMutableDictionary  *HRequestDict() {
    return  [[NSUserDefaults standardUserDefaults] objectForKey:HSaveRequestDictKey];
}

static NSString *const HSaveEmpowerTypeKey = @"HSaveEmpowerTypeKey";
void HSaveEmpowerType(BOOL type) {
    [[NSUserDefaults standardUserDefaults] setBool:type forKey:HSaveEmpowerTypeKey];
    [[NSUserDefaults standardUserDefaults] synchronize];
}
BOOL HEmpowerType() {
    return [[NSUserDefaults standardUserDefaults] boolForKey:HSaveEmpowerTypeKey];
}

//授权码
static NSString *const HSaveEmpowerStringKey = @"HSaveEmpowerStringKey";
void HSaveEmpowerString(NSString *string) {
    [[NSUserDefaults standardUserDefaults] setObject:string forKey:HSaveEmpowerStringKey];
    [[NSUserDefaults standardUserDefaults] synchronize];
}
NSString  *HEmpowerString() {
    return [[NSUserDefaults standardUserDefaults] objectForKey:HSaveEmpowerStringKey];
}

//屏蔽消息状态
static NSString *const HSaveShiledStringKey = @"HSaveShiledStringKey";
void HSaveShiledString(NSString *string) {
    [[NSUserDefaults standardUserDefaults] setObject:string forKey:HSaveShiledStringKey];
    [[NSUserDefaults standardUserDefaults] synchronize];
}
NSString  *HShiledString() {
    return [[NSUserDefaults standardUserDefaults] objectForKey:HSaveShiledStringKey];
}
@implementation HUserRelevantUtilities

@end
